package com.freak.kotlinfitnessserver.constant.fitness

object FitnessMachineStatusConstant {
    /**
     * 重置
     */
    const val reset: Int = 0x01

    /**
     * 用户暂停或停止
     */
    const val stoppedOrPausedByTheUser: Int = 0x02

    /**
     * 用户暂停或停止的值
     */
    const val stoppedOrPausedByTheUserKey: String = "stoppedOrPausedByTheUser"

    /**
     * 用户停止的值
     */
    const val stop: Int = 1

    /**
     * 用户暂停的值
     */
    const val pause: Int = 2

    /**
     * 拔下安全锁停止运动
     */
    const val stoppedBySafetyKey: Int = 0x03

    /**
     * 用户启动或者恢复运动
     */
    const val startedOrResumedByTheUser: Int = 0x04

    /**
     * 目标速度变化 New Target Value (UINT16 in kilometer per hour with a resolution 0.01 km/h)
     */
    const val targetSpeedChanged: Int = 0x05

    /**
     * 速度
     */
    const val targetSpeedChangedKey: String = "targetSpeedChanged"

    /**
     * 目标坡度/倾斜度变化 New Target Value (SINT16 in % with a resolution of 0.1 %)
     */
    const val targetInclineChanged: Int = 0x06

    /**
     * 坡度/倾斜度
     */
    const val targetInclineChangedKey: String = "targetInclineChanged"

    /**
     * 目标阻力变化 New Target Value (UINT8, unitless with a resolution of 0.1)
     */
    const val targetResistanceLevelChanged: Int = 0x07

    /**
     * 阻力
     */
    const val targetResistanceLevelChangedKey: String = "targetResistanceLevelChanged"

    const val TargetPowerChanged: Int = 0x08

    /**
     * 踏频 New Targeted Cadence (UINT16, in 1/minute with a resolution of 0.5)
     */
    const val targetedCadenceChanged: Int = 0x15

    /**
     * 距离 New Targeted Distance (UINT24, in Meters with a resolution of 1)
     */
    const val targetedDistanceChanged: Int = 0x0d

    /**
     * 时间 New Targeted Training Time (UINT16, in Seconds with a resolution of 1)
     */
    const val targetedTrainingTimeChanged: Int = 0x0e
}